package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    public List<User> selectAll();
    User selectById(int id);

    List<User> selectByConditionSingle(User user);
    List<User> selectByCondition(Map map);

    void add(User user);

    int update(User user);

    void deleteById(int id);

    void deleteByIds(@Param("ids") int[] ids);
}
